package tech.dongling.boot.example;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import tech.dongling.boot.anno.Component;

// 订单服务示例
@Component("orderService")
public class OrderService {
    private static final Logger logger = LoggerFactory.getLogger(OrderService.class);
    
    public String getOrderInfo(String orderId) {
        logger.debug("Getting order info for id: {}", orderId);
        String orderInfo = "Order_" + orderId + "_Info";
        logger.debug("Returning order info: {}", orderInfo);
        return orderInfo;
    }
    
    public String createOrder(String productName) {
        logger.debug("Creating order for product: {}", productName);
        String orderId = "ORDER_" + System.currentTimeMillis();
        logger.info("Order created with id: {}", orderId);
        return orderId;
    }
} 